<template>
  <div class="sona">
    <button @click="btnClick">往sonb里传值</button>
  </div>
</template>

<script>
export default {
  methods: {
    btnClick() {
      this.$bus.$emit('atob', Math.random() * 999)
    }
  }
}
</script>

<style lang="scss" scoped>
.sona {
  width: 200px;
  height: 200px;
  background-color: #09f;
}
</style>
